setlocal
set src=c:\temp
set dest=c:\temp2
set logp=c:\logs\FolderSync.activeProcess.log
set logw=c:\logs\FolderSync.watchDestination.log
set log=c:\logs\FolderSync.log
for %%l in (%logp% %logw% %log%) do if exist %%l del %%l
pushd \Users\philippe\Documents\devroot\FolderSync\FolderSync\bin\Debug\
start FolderSync.exe /src %dest%              /log %logw% /logtag w
start FolderSync.exe /src %src%  /dest %dest% /log %logp% /logtag p
pause waiting for test to end
(type %logp% & type %logw%) | sort > %log%
start notepad %log%
endlocal